package com.hxp.birthday;

import java.util.ArrayList;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.view.View;

public class ViewpagerAdapter extends FragmentPagerAdapter{
	private ArrayList<Fragment> fragmentlist;

	public ViewpagerAdapter(FragmentManager fm,ArrayList<Fragment> fragmentlist) {
		super(fm);
		this.fragmentlist=fragmentlist;
		
		
	}


	@Override
	public Fragment getItem(int arg0) {
		// TODO Auto-generated method stub
		return fragmentlist.get(arg0);
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return fragmentlist.size();
	}

}
